package com.example.jiaju.entity;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class Decoration {

    @SerializedName("msg")
    public String msg;
    @SerializedName("code")
    public Integer code;
    @SerializedName("page")
    public PageDTO page;

    @NoArgsConstructor
    @Data
    public static class PageDTO {
        @SerializedName("totalCount")
        public Integer totalCount;
        @SerializedName("pageSize")
        public Integer pageSize;
        @SerializedName("totalPage")
        public Integer totalPage;
        @SerializedName("currPage")
        public Integer currPage;
        @SerializedName("list")
        public List<ListDTO> list;

        @NoArgsConstructor
        @Data
        public static class ListDTO implements Serializable {
            @SerializedName("decId")
            public Integer decId;
            @SerializedName("decName")
            public String decName;
            @SerializedName("decFans")
            public Integer decFans;
            @SerializedName("decLike")
            public Integer decLike;
            @SerializedName("decLabel")
            public String decLabel;
            @SerializedName("decAdd")
            public String decAdd;
            @SerializedName("decImg")
            public String decImg;
        }
    }
}
